
import request from "@/utils/request";

export const list = (data) => {
  return request({
    url: "/list",
    method: "post",
    data,
  })
};
export const getMenu = (data) => {
  return request({
    url: "/getMenu",
    method: "post",
    data,
  })
};
//路由权限
export const getPermission = (data) => {
  return request({
    url: "/getPermission",
    method: "post",
    data,
  })
};
//组织数据
export const getOrganizationList = (data) => {
  return request({
    url: "/organizationList",
    method: "post",
    data,
  })
}
//群数据
export const getGroupList = (data) => {
  return request({
    url: "/groupList",
    method: "post",
    data,
  })
}
//群数据
export const getMemberList = (data) => {
  return request({
    url: "/memberList",
    method: "post",
    data,
  })
}
//审批记录
export const getRecordList = (data) => {
  return request({
    url: "/recordList",
    method: "post",
    data
  })
}
//链接
export const getLinkUrl = (data) => {
  return request({
    url: "/getLinkUrl",
    method: "post",
    data
  })
}
//上传
export const upload = (data) => {
  return request({
    url: "/upload",
    method: "post",
    data
  })
}
//异步验证
export const checkValue = (data) => {
  return request({
    url: "/checkValue",
    method: "post",
    data
  })
}
//创建
export const createData = (data) => {
  return request({
    url: "/createData",
    method: "post",
    data
  })
}
